<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml"
      layout:decorate="~{front/common/manage}" xmlns:layout="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>个人中心-我的作品</title>
  <link rel="stylesheet" href="/static/front/css/my-prod-all.css">
  <link rel="stylesheet" href="/static/front/css/pagination.css">
  <link rel="stylesheet" href="/static/front/css/my-prod-nopass.css">
</head>
<body>
<div layout:fragment="content" class="con6-r">
  <div class="nav">
    <ul>
      <li class="on"><a href="javascript:;">全部</a></li>
      <li><a href="javascript:;" data-id="refused">未通过</a></li>
      <li><a href="javascript:;" data-id="commiting">待提交</a></li>
      <li><a href="javascript:;" data-id="commited">审核中</a></li>
      <li><a href="javascript:;" data-id="passed">在售</a></li>
    </ul>
    <form class="search_form" onsubmit="return false">
      <div class="srch">
        <input type="text" name="worksNameOrDciCode" value="" placeholder="请输入作品名/DCI编码查询"/>
        <input type="hidden" name="worksProcess">
        <input type="submit" value="查询"/>
      </div>
    </form>
  </div>
  <div class="lists">
    <div class="table">
      <table id="copyright_table" border="" cellspacing="0" cellpadding="">
        <thead>
        <tr>
          <td class="first">图片信息</td>
          <td>作品类型</td>
          <td>状态</td>
          <td><a href="javascript:;">上传时间&darr;</a></td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody id="tbody">

        </tbody>
      </table>

      <table id="sales_table" border="" cellspacing="0" cellpadding="" style="display: none;">
        <thead>
        <tr>
          <td class="first">图片信息</td>
          <td>作品类型</td>
          <td>下载/次</td>
          <td>收入/元</td>
          <td><a href="javascript:;">上传时间&darr;</a></td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody id="sales_tbody">

        </tbody>
      </table>
    </div>
    <div class="m-style pages"></div>
  </div>
  <div class="nothing" style="display: none">
    <span>暂无数据</span>
  </div>

  <div class="pop-tips" id="pop-tips" style="display: none;">
    <div class="pop_head">
      <h4>提示</h4>
    </div>
    <div class="txt">
      <p>确定删除吗?</p>
    </div>
  </div>
</div>
<th:block layout:fragment="script">
  <script id="tpl_row" type="text/html">
    {{#  layui.each(d.content, function(index, item){ }}
    {{# if(index==d.content.length-1){ }}
    <tr style="border-bottom: 0px">
      {{# }else{ }}
    <tr>
      {{# } }}
      <td class="first">
        <div class="img">
          <a href="javascript:;" data-id="{{item.id}}"><img src="{{item.imageUrl}}"/></a>
        </div>
        {{# if(item.worksProcess=='passed'){ }}
        <div class="title hasimg">
          <h4 class="layui-elip"><a href="javascript:;" data-id="{{item.id}}">{{item.worksFullName}}</a></h4>
          <h4 class="layui-elip"><a href="javascript:;" data-id="{{item.id}}">{{item.dciCode}}</a></h4>
          <h4>{{item.rcode}}</h4>
        </div>
        {{# }else{ }}
        <div class="title">
          <h4 class="layui-elip"><a href="javascript:;">{{item.worksFullName}}</a></h4>
          <h4>{{item.rcode}}</h4>
        </div>
        {{# } }}
      </td>
      <td>{{item.worksTypeName}}</td>
      <td>{{item.worksProcessDesc}}</td>
      <td>{{item.createTime}}</td>
      <td>
        {{# if(item.worksProcess=='commiting'){ }}
        <dl>
          <dd class="xg"><a href="javascript:;" title="提交" data-id="{{item.id}}"></a></dd>
          <dd class="sc"><a href="javascript:;" title="删除" data-id="{{item.id}}"></a></dd>
        </dl>
        {{# } }}

        {{# if(item.worksProcess=='commited'){ }}
        <dl>
          <dd class="ck"><a href="javascript:;" data-id="{{item.id}}"></a></dd>
        </dl>
        {{# } }}

        {{# if(item.worksProcess=='passed'){ }}
        <dl>
          <dd class="ck"><a href="javascript:;" title="查看详情" data-id="{{item.id}}"></a></dd>
          <dd class="monitor_li"><a href="javascript:;" title="监测" data-id="{{item.id}}"></a></dd>
        </dl>
        {{# } }}

        {{# if(item.worksProcess=='refused'){ }}
        <dl>
          <dd class="tj"><a href="javascript:;" title="重新提交" data-id="{{item.id}}"></a></dd>
          <dd class="sc"><a href="javascript:;" title="删除" data-id="{{item.id}}"></a></dd>
          <dd class="ck"><a href="javascript:;" title="查看详情" data-id="{{item.id}}"></a></dd>
        </dl>
        {{# } }}
      </td>
    </tr>
    {{#  }); }}
  </script>

  <script id="salesBody" type="text/html">
    {{#  layui.each(d.goods_list, function(index, item){ }}
    {{# if(index==d.goods_list.length-1){ }}
      <tr style="border-bottom: 0px">
      {{# }else{ }}
      <tr>
      {{# } }}
      <td class="first">
        <div class="img">
          <a href="http://www.meisupic.com/goods.php?media_id={{item.goods_sn}}" target="_blank" ><img src="{{item.thumb}}"/></a>
        </div>
        <div class="title hasimg">
          <h4><a href="http://www.meisupic.com/goods.php?media_id={{item.goods_sn}}" target="_blank"> {{item.goods_name}}</a></h4>
          <h4><a href="http://www.meisupic.com/goods.php?media_id={{item.goods_sn}}" target="_blank">ID:{{item.goods_sn}}</a></h4>
        </div>

      </td>
      <td>{{# if(item.type=='artProductRegist'){ }}美术作品{{# }else if(item.type='photoProductRegist'){ }}摄影作品 {{# }else if(item.type='chartProductRegist'){ }}工程作品 {{# }else{ }}其他 {{# } }}</td>
      <td>{{item.count}}</td>
      <td>{{item.total_amount}}</td>
      <td>{{item.upload_date}}</td>
      <td>
        <dl>
          <dd class="sales_ck"><a href="javascript:;" title="查看详情" data-id="{{item.goods_id}}"></a></dd>
          <dd class="sales_monitor_li"><a href="javascript:;" title="监测" data-id="{{item.work_id}}"></a></dd>
        </dl>
      </td>
    </tr>
    {{#  }); }}
  </script>

  <script type="text/javascript" src="/static/front/js/lib/jquery.pagination.js"></script>
  <script type="text/javascript" src="/static/front/js/config.js"></script>
  <script type="text/javascript">
    layui.use('works');
  </script>
</th:block>
</body>
</html>